<template>
  <u-card
    :border="false"
    :show-head="false"
    :padding="padding"
    border-radius="10"
    margin="20rpx 30rpx"
  >
    <view slot="body">
      <slot name="body"></slot>
    </view>
  </u-card>
</template>

<script>
/**
 * 卡片
 * @property {String | Number} padding 参考u-card的padding属性
 */
export default {
  name: 'y-card',

  props: {
    padding: {
      type: [String, Number],
      default: '30',
    },
  },
};
</script>
